<?php

//UMA new
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateNikkeiScoreRatesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('nikkei_score_rates', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->smallInteger('min_change')->comment('最小値');
            $table->smallInteger('max_change')->comment('最大値');
            $table->double('rate', 4, 2)->comment('パーセンテージ');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('nikkei_score_rates');
    }
}
